function checkName(){
    var name=document.getElementById("name").value;
    var p1=document.getElementById("p1");
    if(name==""){
        p1.style.display="block";
    }else{
        p1.style.display="none";
    }
}
function checkPhone(){
    var phone=document.getElementById("phone").value;
    var p2=document.getElementById("p2");
    var p3=document.getElementById("p3");
    if(phone==""){
        p2.style.display="block";
    }else if(phone.length!=11){
        p3.style.display="block";
    }else{
        p2.style.display="none";
        p3.style.display="none";
    }
}
function checkCard(){
    var card=document.getElementById("card").value;
    var p4=document.getElementById("p4");
    var p5=document.getElementById("p5");
    if(card==""){
        p4.style.display="block";
    }else if(card.length!=18){
        p5.style.display="block";
    }else{
        p4.style.display="none";
        p5.style.display="none";
    }
}
function checkPas(){
    var pas=document.getElementsByName("pas")[0].value;
    var p6=document.getElementById("p6");
    if(pas==""){
        p6.style.display="block";
    }else{
        p6.style.display="none";
    }
}
function checkRepas(){
    var pas=document.getElementsByName("pas")[0].value;
    var repas=document.getElementsByName("pas")[1].value;
    var p7=document.getElementById("p7");
    var p8=document.getElementById("p8");
    if(repas==""){
        p7.style.display="block";
    }else if(pas!=repas){
        p8.style.display="block";
    }else{
        p7.style.display="none";
        p8.style.display="none";
    }
}

